package com.kele.search.feign;

import com.kele.common.model.response.Result;
import com.kele.model.goods.SearchGoods;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;

@FeignClient(value = "kele-goods",fallback = GoodsFeignClientImpl.class)
public interface GoodsFeignClient {

    @PostMapping("goods/findUpdatedAfter/{lastSyncTime}")
    public List<SearchGoods> findUpdatedAfter(@PathVariable String lastSyncTime);

    @PostMapping("goods/findUpdatedAfter/{lastSyncTime}")
    public Result test();
}
